<?php
/**
 * Created by PhpStorm.
 * User: geyouwen
 * Date: 16/7/20
 * Time: 下午2:51
 */

namespace Superadmin\Model;


use Think\Model;

class ArticleModel extends Model
{

    protected $connection = 'DB_CONFIG1';

    protected $table      = 'article';

    protected $prefix     = 'tp_';

    protected $_validate  = array(
        array('cate_id','require','文章分类不能为空！'),
        array('title','require','文章标题不能为空！'),
    );

}